gdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Tue, 29 Dec 2020 02:20:04 +0000 (18:20 -0800)
committerVivek Kasireddy <vivek.kasireddy@intel.com>
Tue, 29 Dec 2020 02:20:04 +0000 (18:20 -0800)
commit3344bcaf92bf1659bd3db0a896edd01dcd3005f3
tree8a39e8f95a875292b6fe0f014b9d0e451847749b
parent0fcf01ddd57de557ca42742eab2b1101c4aefdc5
gdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()

Some GTK based applications such as Qemu UI create and manage
EGLSurfaces associated with the relevant GdkSurfaces. In order to create
an EGLSurface, there needs to be a way to pass the native window
object to eglCreateWindowSurface(). While running in an X environment,
the native window object can be obtained by calling
gdk_x11_surface_get_xid(). Likewise, the native window object can be
obtained by calling gdk_wayland_surface_get_wl_egl_window() while
running in a Wayland environment. Therefore, this API needs to be
exposed to apps.

Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
gdk/wayland/gdksurface-wayland.c
gdk/wayland/gdkwaylandsurface.h